home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / port / sun / README < prev   
Text File  |  1994-08-01  |  4KB  |  99 lines

  1. $Header: /usr/people/sam/fax/port/sun/RCS/README,v 1.6 1994/02/18 17:07:35 sam Rel $
  2.  
  3. The enclosed notes describes why you can not use RTS/CTS flow control
  4. with modems attached to the on-board serial ports unless you apply
  5. the jumbo tty patch 100513-04 for SunOS 4.1.2 and 4.1.3.
  6.  
  7.     Sam
  8.  
  9.  
  10. Date: Wed, 17 Nov 93 22:07:42 CST
  11. From: katzung@katsun.chi.il.us (Brian Katzung)
  12. To: flexfax@sgi.sgi.com
  13. Subject: Bidirectional hardware flow control for Sun zs users!
  14.  
  15. An infamous and long-standing hardware flow control problem with Sun's
  16. built-in serial ports, which Sun customers have often been led to
  17. believe was insoluable, has at last been solved.
  18.  
  19. Sun has released a new jumbo tty patch 100513-04 for SunOS 4.1.2 and
  20. 4.1.3 that incorporates changes that I have developed for the ZS 8530
  21. serial communications driver (which most notably affects the built-in
  22. serial ports) to support bidirectional hardware flow control.
  23.  
  24. My changes eliminate a problem in which the receiver is disabled if
  25. CRTSCTS mode is enabled but CD (carrier detect) is not present, and
  26. add support to lower RTS (request to send) when the input buffers are
  27. getting full and reassert it when the buffers drain.
  28.  
  29. If you are not running SunOS 4.1.2 or 4.1.3 but you have a software
  30. support contract with Sun and are interested in seeing this enhancement
  31. supported in the release you are running, I suggest you contact your
  32. Sun software support representative.
  33.  
  34. I would like to take this opportunity to thank Dr. R. P. C. Rodgers of
  35. the National Library of Medicine Lister Hill Center, Peter Glassenbury
  36. of the University of Canterbury, Christchurch, New Zealand, and
  37. Arborvitae Software, all of whom provided invaluable assistance.
  38.  
  39.   -- Brian Katzung
  40.  
  41.  
  42.  
  43.  
  44. Date: Sat, 17 Apr 93 16:47:45 EDT
  45. From: bst%tt@CAM.ORG (Brent Townshend)
  46. Message-Id: <9304172047.AA00639@tt.UUCP>
  47. To: flexfax@sgi.sgi.com
  48. Subject: Sun RTS/CTS problems summarized.
  49. Cc: bst%tt@CAM.ORG
  50.  
  51.  
  52. I'd like to recap the current status of the SUN RTS/CTS flow control
  53. problems, and see if anyone has anything further to add.  Perhaps
  54. these problems should go noted in a README file in the port/sun
  55. directory.  I'm running SunOS 4.1.1 with a U1496E+ with 6.00 ROMS and
  56. FlexFAX beta 97. Here is the problem as I see it:
  57.  
  58. The Sun driver for the Sparcstation on-board zs serial port
  59. behaves somewhat differently than one may expect.  If hardware
  60. flow control is requested by the host and carrier detect is
  61. not asserted by the modem then data from the modem to the Sun
  62. is discarded.  Note that data from the host to the modem works
  63. fine under these conditions.  Once carrier detect is asserted,
  64. RTS/CTS works as expected.  The problem is that when flexfax
  65. awaits responses from its 'AT' commands, the replies are thrown
  66. away by the OS since Carrier Detect is not present.
  67.  
  68. One would think that the recent changes to FlexFAX in regards
  69. to setting the CLOCAL bit would fix this problem.  However, it
  70. appears that the CLOCAL bit is having no effect.
  71.  
  72. As mentioned by Steven Grimm, and further verified by looking
  73. at the data sheets, the problem arises from the Zilog Z8530
  74. chip used for serial communications.  On that chip there is
  75. a single control bit which turns on automatic RTS/CTS handling.
  76. This same bit turns the CD input into a receiver enable.  Thus
  77. if the hardware is set for RTS/CTS flow control, then input
  78. is discarded whenever CD is inactive.  This explains why the
  79. OS can't do what we'd like when CLOCAL is set.
  80.  
  81. One fix for this is to set the modem to always assert CD using
  82. AT&C0.  However, this will cause problems in disconnecting after
  83. a call is finished.  Another fix is to use XON/XOFF flow control,
  84. but effective RTS/CTS would be better, especially for data connections.
  85.  
  86. I believe the only way we are going to get around this problem is
  87. if FlexFAX would allow independent flow-control selection for setup,
  88. data transfer, and FAX transfer.  This would also help out handling
  89. for modems like the ZyXEL which always do Xon/Xoff flow control
  90. when sending faxes.
  91.  
  92. -Brent
  93.  
  94. --------------------------------------------------------------------
  95. Brent Townshend            Internet: bst%tt@cam.org
  96. Townshend Computer Tools        UUCP: ...!uunet!cam.org!tt!bst
  97. 230 Sherbrooke St E. #502       Phone: +514-289-9123
  98. Montreal, Quebec, H2X 1E1         FAX: +514-289-1831
  99.